﻿////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// <copyright>Copyright 2008-2011 Andreas Huber Doenni</copyright>
// Distributed under the Microsoft Public License (Ms-PL).
// See accompanying file License.txt or copy at http://mews.codeplex.com/license.
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

namespace Mews.Net.Nntp
{
    /// <summary>Encapsulates the information about a newsgroup.</summary>
    /// <threadsafety static="true" instance="false"/>
    public sealed class GroupInfo
    {
        private readonly string name;
        private readonly string description;

        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////

        /// <summary>The name of the newsgroup.</summary>
        public string Name
        {
            get { return this.name; }
        }

        /// <summary>The description of the newsgroup.</summary>
        public string Description
        {
            get { return this.description; }
        }

        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////

        internal GroupInfo(string name, string description)
        {
            this.name = name;
            this.description = description;
        }
    }
}
